var sequelize = require('../config/database');
var Sequelize = require('sequelize');

var Post = sequelize.define('post',{
	title:{
		type:Sequelize.STRING,
		field:'title',
		comment:'标题'
	},
	link:{
		type:Sequelize.STRING,
		field:'link',
		comment:'链接地址'
	},
	date:{
		type:Sequelize.STRING,
		field:'date',
		comment:'日期'
	},
	author:{
		type:Sequelize.STRING,
		field:'author',
		comment:'作者'
	},
	guid:{
		type:Sequelize.STRING,
		field:'guid',
		comment:'guid'
	}

},{
	tableName:'post'
});

module.exports = Post;